//导入路由
import { createRouter, createWebHashHistory } from 'vue-router'
const manageTeachers = () => import('/src/views/departmentHead/ManageTeachers.vue')
const manageStudents = () => import('/src/views/departmentHead/ManageStudents.vue')
const manageProjects = () => import('/src/views/departmentHead/ManageProjects.vue')
// 定义路由
const routes = [
  // 管理员界面的三个功能
  {
    // 管理教师
    path: '/manageTeachers',
    name: 'manageTeachers',
    component: manageTeachers,
  },
  {
    // 管理实践课题
    path: '/manageProjects',
    name: 'manageProjects',
    component: manageProjects
  },
  {
    // 管理学生
    path: '/manageStudents',
    name: 'manageStudents',
    component: manageStudents
  },
  {
    //默认路由是管理教师页面
    path: '/',
    redirect: '/manageTeachers',    //重定向，默认路由
    props: true
  },
]
const router = createRouter({
  history: createWebHashHistory(),
  routes: routes
})
export default router